package GameMain.View.RoomList
{
	import Engine.UIControl.ScrollBase;
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;

	public class PLevelArea
	{
		private static var itemClass:Class = null;
		private var _content:Sprite;
		private var _scrollBar:ScrollBase;
		
		
		public function PLevelArea(p_content:Sprite)
		{
			this._content = p_content;
			var bg:Sprite = new Sprite();
			bg.x = 3.75; bg.y = 17.35;
			bg.graphics.lineStyle();
			bg.graphics.drawRect(0, 0, 192, 210);
			this._content.addChild(bg);
			this._scrollBar = new ScrollBase(bg,this._content["UP_BTN"],this._content["DOWN_BTN"],this._content["DRAG_BTN"]);
			for(var i:int = 0;i<20;i++)
			{
				var item:Sprite = new itemClass as Sprite
				item["plevel"].text = i;
				item.mouseChildren = false;
				this._scrollBar.addChild(item);
			}
		}
		
		public static function setItemClass(_class:Class):void
		{
			itemClass = _class;
		}
	}
}